package org.huzhp.data.handler;

import org.huzhp.data.core.DbInfo;
import org.huzhp.data.exception.DataException;

/**
 * @Description: 数据库操作接口
 * @Author: huzp
 * @CreateDate: 2020/4/22 10:19
 * @Version: 1.0
 */
public  interface IHandler {

    /**
     * 测试连接
     * @param db
     * @return
     */
    boolean testDB(DbInfo db) throws DataException;


    /**
     * 备份db
     * @param db
     * @param table
     * @param path
     * @return
     * @throws DataException
     */
    boolean bakDB(DbInfo db, String table, String path) throws DataException;

}
